<template>
	<div class="invitecode">
		<div class="invite-cont">
			<p>个人邀请码</p>
			<h3 v-text="invite"></h3>
		</div>
	</div>
</template>

<script>
	export default{
		name:'invitecode',
		data () {
			return{
				user:0,
				invite:''
			}
		},
		created:function(){
			this.user=localStorage.getItem("nt_user");
		},
		methods:{
			
		},
		mounted:function(){
			var self=this;
			$.ajax({
				type:"post",
				url:furl+"index.php?app=ajax_buyer_order&act=recommend",
				data:{'token':self.user},
				dataType:'json',
				success:function(res){
					if(res.done){
						self.invite=res.retval.recommend;
					}
				}
			});
		}
	}
</script>

<style>
	.invitecode{background-image:url(../../img-user/invitebg@3x.png);background-repeat:no-repeat;height:100%;background-size:6.83rem 4.76rem;background-position:0.32rem 1.66rem;font-size:0;position:relative;}
	.invite-cont{position:absolute;text-align: center;top:2.46rem;left:50%;transform: translateX(-50%);}
	.invite-cont>p{font-size:0.28rem;color:#666;line-height: 0.27rem;margin-bottom: 0.23rem;}
	.invite-cont>h3{font-size:0.6rem;color:#222;text-shadow:0 0 0.04rem #276214;line-height: 0.47rem;}
</style>